package com.lzh.prometheus.pojos.dingding;

import com.lzh.prometheus.properties.enums.DingdingTextTypeEnum;

/**
 * @author zhehen.lu
 * @date 2025/8/15 9:00
 */
public class DingDingTextNotice extends DingDingNotice {

    private DingDingText text;

    /**
     * @param at
     * @param msgtype
     */
    public DingDingTextNotice(String msg, String[] phones) {
        super(new DingDingAt(phones), DingdingTextTypeEnum.TEXT.getMsgType());
        text = new DingDingText(msg);
    }

    /**
     * @return the text
     */
    public DingDingText getText() {
        return text;
    }

    /**
     * @param text the text to set
     */
    public void setText(DingDingText text) {
        this.text = text;
    }

    @Override
    public String toString() {
        return "DingDingTextNotice [text=" + text + ", at=" + at + ", msgtype=" + msgtype + "]";
    }

}
